package com.jy.admin.rest.response;

import com.fqgj.common.api.Page;
import com.fqgj.common.utils.CollectionUtils;
import com.jy.admin.db.entity.ClUploadEntity;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2021/11/23
 * Time: 3:26 下午
 */
public class ClListResponse implements Serializable {

    private static final long serialVersionUID = 2375305524782363544L;
    private List<Item> list = new ArrayList<>();

    public ClListResponse(List<ClUploadEntity> list) {

        List<Item> list1 = new ArrayList<>();
        if (!CollectionUtils.isEmpty(list)) {
            list.forEach(clUploadEntity -> {
                Item item = new Item();
                BeanUtils.copyProperties(clUploadEntity, item);
                list1.add(item);
            });
        }
    }

    public List<Item> getList() {
        return list;
    }

    public ClListResponse setList(List<Item> list) {
        this.list = list;
        return this;
    }

    private class Item {

        /**
         * 登陆用户
         */
        private String recordCode;

        /**
         * 登陆用户
         */
        private String adminCode;
        /**
         * 产品名
         */
        private String productName;
        /**
         * 阶段
         */
        private String stage;
        /**
         * 借款用户姓名
         */
        private String name;
        /**
         * 手机号码
         */
        private String mobile;
        /**
         * 订单号
         */
        private String orderNo;
        /**
         * 图片地址
         */
        private String imageUrl;
        /**
         * 备注信息
         */
        private String remark;
        /**
         * 0 等待处理 1 处理成功 2处理失败
         */
        private Integer status;

        public String getRecordCode() {
            return recordCode;
        }

        public Item setRecordCode(String recordCode) {
            this.recordCode = recordCode;
            return this;
        }

        public String getAdminCode() {
            return adminCode;
        }

        public Item setAdminCode(String adminCode) {
            this.adminCode = adminCode;
            return this;
        }

        public String getProductName() {
            return productName;
        }

        public Item setProductName(String productName) {
            this.productName = productName;
            return this;
        }

        public String getStage() {
            return stage;
        }

        public Item setStage(String stage) {
            this.stage = stage;
            return this;
        }

        public String getName() {
            return name;
        }

        public Item setName(String name) {
            this.name = name;
            return this;
        }

        public String getMobile() {
            return mobile;
        }

        public Item setMobile(String mobile) {
            this.mobile = mobile;
            return this;
        }

        public String getOrderNo() {
            return orderNo;
        }

        public Item setOrderNo(String orderNo) {
            this.orderNo = orderNo;
            return this;
        }

        public String getImageUrl() {
            return imageUrl;
        }

        public Item setImageUrl(String imageUrl) {
            this.imageUrl = imageUrl;
            return this;
        }

        public String getRemark() {
            return remark;
        }

        public Item setRemark(String remark) {
            this.remark = remark;
            return this;
        }

        public Integer getStatus() {
            return status;
        }

        public Item setStatus(Integer status) {
            this.status = status;
            return this;
        }
    }
}
